options results;signal on SYNTAX;signal on ERROR;signal on IOERR;BBSIDENTIFY NAME;SYS=result;BBSIDENTIFY SYSOP;NAM=result;se=sendstring;gc=getchar;qu=query
if xf=1 then do;getuser 15;access=result;maint=(access>=maintAC);end
if xf=2 then do;getuser 15;access=result;getuser 40;id=result;maint=(access>=maintAC|id=1);end
if xf=3 then do;getuser 15;access=result;getuser 40;id=result;getuser 1100663;sysop=bittst(result,4);maint=(access>=maintAC|id=1|sysop=1);end
if cnet4=1 then do;xh=1;end;else do;xh=0;end
if xh=0 then do;CNETA=2121864;CNETB=2121862;end;else do;CNETA=2124552;CNETB=2124550;end
if xg=1 then do;tr;se 'ceView your port status? cc[caYcfescf/c9ncfocc] cd> ';gc;vyn=upper(result)
if vyn='N' then do;tr 'c9Now1';tr;tr 'ceThank You for using cfPORTc9Status cb'ver;setobject oldmore;putuser 1100454;changewhere oldwh;exit;end;else tr 'cfYesw1';end
if xa=1 then do;call CHECK;if xh=1 then do;gu CNETA+port*24;CanChat=BitTST(d2c(result),4);end;else do;gu CNETA+port*24;CanChat=BitTST(d2c(result),0);end
if CanChat=0 then SS='c9NOT AVAILABLE cffor Chat.';if CanChat=1 then SS='caAVAILABLE cffor Chat.'
tr 'cfThe SysOp cc(ce'NAM'cc) cfis 'SS;end
if xb=1 then do;call CHECK;if xh=1 then do;gu CNETA+port*24;NewUser=BitTST(d2c(result),3);end;else do;gu CNETA+port*24;NewUser=BitTST(d2c(result),1);end
if NewUser=1 then NU='c9NOT Accepting cfNew Users';if NewUser=0 then NU='caAccepting cfNew Users'
tr 'ce'SYS' cfBBS is 'NU' on this port.';tr;end
if xc=1 then do;call CHECK;if xh=1 then do;gu CNETA+port*24;UDBaseS=BitTST(d2c(result),1);end;else do;gu CNETA+port*24;UDBaseS=BitTST(d2c(result),2);end
if UDBaseS=0 then UD='caOPEN';if UDBaseS=1 then UD='c9CLOSED'
se 'cfThe File Area iscb: 'UD'cf, ';end
if xd=1 then do;call CHECK;if xh=1 then do;gu CNETA+port*24;PFilesS=BitTST(d2c(result),0);end;else do;gu CNETA+port*24;PFilesS=BitTST(d2c(result),3);end
if PFilesS=0 then PF='caOPEN';if PFilesS=1 then PF='c9CLOSED'
se 'cfThe Game Area iscb: 'PF'cf, ';end
if xe=1 then do;call CHECK;if xh=1 then do;gu CNETA+port*24;MsgBase=BitTST(d2c(result),2);end;else do;gu CNETA+port*24;MsgBase=BitTST(d2c(result),4);end
if MsgBase=0 then MB='caOPEN';if MsgBase=1 then MB='c9CLOSED'
se 'cfThe Base Area iscb: 'MB;tr;end;if maint=1 then do;tr;call SYSMEN;end
tr;tr;se 'cfPress cc[ceAny Keycc] cfto Continue...g1';setobject oldmore;putuser 1100454;tr ' ceThank You for using cfPORTc9Status cb'ver;setobject oldmore;putuser 1100454;changewhere oldwh;exit
SYSMEN:tr 'cePort cfPort Status ceSysOp Around? cfNewUsers ceFileArea cfGameArea ceBaseArea'
it.i=100;gu CNETB+it.i*24;load=result;if load<1 then ld='Closed';else ld='Loaded/'
getportid it.i;tpt=result;if tpt=-1 then do;ld1=ld'Idle12345';end;if ld='Closed' then ld1='Closed Port'
if it.i<100 then do;getportid it.i;id=result;if id>-1 then do;loadscratch id;savescratch (-id);getscratch 1;handle.it=result;ld1=handle.it;end;end
maygetchar;die=upper(result);if die~="NOCHAR" then do;prompt 1 YESNO "cdContinue listing cc[caYcfescc/c9ncfocc] ";CMD=upper(result);if CMD="###PANIC" then exit;if CMD~='YES' then call MAIN
if xa=1 then do;call CHECK;if xh=1 then do;gu CNETA+it.i*24;CanChat=BitTST(d2c(result),4);end;else do;gu CNETA+it.i*24;CanChat=BitTST(d2c(result),0);end;end;end
if CanChat=0 then SS='Not Available';else SS='Available'
call CHECK;if xh=1 then do;gu CNETA+it.i*24;NewUser=BitTST(d2c(result),3);end;else do;gu CNETA+it.i*24;NewUser=BitTST(d2c(result),1);end
if NewUser=1 then NU='No ';else NU='Yes'
call CHECK;if xh=1 then do;gu CNETA+it.i*24;UDBaseS=BitTST(d2c(result),1);end;else do;gu CNETA+it.i*24;NewUser=BitTST(d2c(result),2);end
if UDBaseS=0 then UD='Yes';else UD='No '
call CHECK;if xh=1 then do;gu CNETA+it.i*24;PFilesS=BitTST(d2c(result),0);end;else do;gu CNETA+it.i*24;NewUser=BitTST(d2c(result),3);end
if PFilesS=0 then PF='Yes';else PF='No '
call CHECK;if xh=1 then do;gu CNETA+it.i*24;MsgBase=BitTST(d2c(result),2);end;else do;gu CNETA+it.i*24;NewUser=BitTST(d2c(result),4);end
if MsgBase=0 then MB='Yes';else MB='No '
if it.i=100 then ld1='GLOBAL INFO'
se 'Ccf'left(it.i,6);se left('Cce'ld1,18);se 'Ccf'left(SS,13);se 'Cce'NU;se 'Ccf'UD;se 'Cce'PF;se 'Ccf'MB;tr